/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package graficos;

/**
 *
 * @author Leonardo
 */
public class Grafico {
    private double a, b, c, d;
    private String nome;
    
    public Grafico(double a, double b, double c, double d, String nome){
        this.a = a;
        this.b = b;
        this.c = c;
        this.d = d;
        this.nome = nome;
    }
    
    public double percent(){
        return a+b+c+d;
    }
    
    public String getNome(){return nome;}
    public double getA(){ return a;}
    public double getB(){ return b;}
    public double getC(){ return c;}
    public double getD(){ return d;}
}
